package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.LeaseAgreement;
import com.atguigu.lease.web.admin.vo.agreement.AgreementQueryVo;
import com.atguigu.lease.web.admin.vo.agreement.AgreementVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
* @author liubo
* @description 针对表【lease_agreement(租约信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.atguigu.lease.model.LeaseAgreement
*/
public interface LeaseAgreementMapper extends BaseMapper<LeaseAgreement> {
    /**
     * 根据id查询租约信息
     * @param id
     * @return
     */
    AgreementVo findAgreementVoById(Long id);

    /**
     * 分页查询租约信息
     * @param page
     * @param queryVo
     * @return
     */
    IPage<AgreementVo> findAgreementVoByPage(IPage<AgreementVo> page, AgreementQueryVo queryVo);
}




